package com.wn.ticket.web;

import com.wn.ticket.common.ResponseEntity;
import com.wn.ticket.entity.Perform;
import com.wn.ticket.entity.PerformAddress;
import com.wn.ticket.service.PerformAddressService;
import com.wn.ticket.service.PerformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhairenhao
 * @date 2022/9/3 12:39
 */
@RestController
@RequestMapping("/front/performAddress")
public class PerformAddressController {
    @Autowired
    private PerformAddressService performAddressService;

    //演出详情
    @GetMapping("/get/{id}")
    public ResponseEntity<PerformAddress> getById(@PathVariable int id) {
        PerformAddress performAddress = performAddressService.getById(id);
        return new ResponseEntity<>(performAddress);
    }

}
